import Layout from "@/layout/index.vue";

export default [
  {
    path: '/shop/rest-add',
    component: Layout,
    hidden: true,
    permissions: ['shop:restaurant:edit'],
    children: [
      {
        path: 'index',
        component: () => import('@/views/shop/restaurant/restaurantAdd'),
        name: 'RestaurantAdd',
        meta: { title: '餐饮商户编辑', activeMenu: '/shop/restaurant/restaurant' }
      }
    ]
  },
  {
    path: '/shop/restaurant/menu-add',
    component: Layout,
    hidden: true,
    permissions: ['shop:restaurant:edit'],
    children: [
      {
        path: 'index',
        component: () => import('@/views/shop/restaurant/menu/menuAdd'),
        name: 'RestaurantMenuAdd',
        meta: { title: '餐饮菜单编辑', activeMenu: '/shop/restaurant/menu' }
      }
    ]
  },
  {
    path: '/shop/restaurant/menu/type',
    component: Layout,
    hidden: true,
    permissions: ['shop:restaurant:edit'],
    children: [
      {
        path: 'index/:restId(\\d+)',
        component: () => import('@/views/shop/restaurant/menuType/index'),
        name: 'MenuType',
        meta: { title: '餐饮菜品类型编辑', activeMenu: '/shop/restaurant/restaurant' }
      }
    ]
  },
]
